package com.qg.rta.controller;

import com.qg.rta.cache.LocalCache;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
@Slf4j
@RequiredArgsConstructor
public class TestController {


    @RequestMapping("/get")
    public long test(String key) {

        return LocalCache.getInstance().get(key);
    }
}
